//
//  DadaTableViewCell.m
//  news
//
//  Created by imacbookair on 16/3/10.
//  Copyright © 2016年 imacbookair. All rights reserved.
//

#import "DadaTableViewCell.h"

@implementation DadaTableViewCell

#pragma mark - 初始化
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // 图片
        self.daTu = [[UIImageView alloc]init];
        // 标题
        self.biaoTi = [[UILabel alloc]init];
        _biaoTi.textColor = [UIColor whiteColor];
        
        [self.contentView addSubview:_daTu];
        [self.contentView addSubview:_biaoTi];
        
        [_daTu NightWithType:UIViewColorTypeNormal];
//        [_biaoTi NightWithType:UIViewColorTypeNormal];
        
//        [self.contentView NightWithType:UIViewColorTypeNormal];
        
    }
    return self;
}


#pragma mark - 布局

-(void)layoutSubviews
{
    [super layoutSubviews];
    _daTu.frame = CGRectMake(0, 0, self.contentView.frame.size.width, 180);
    _biaoTi.frame = CGRectMake(10, 150, 280, 20);
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
